package com.qumitech.visualnovel.pubdef.dto.advent;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class AdventCfgDTO {

    private String id;
    @JSONField(name = "advent_type")
    private Byte adventType;
    @JSONField(name = "page_index")
    private Byte pageIndex;
    @JSONField(name = "icon")
    private String iconName;
    @JSONField(name = "goto")
    private String gotoUrl;
    @JSONField(name = "title")
    private String title;
    @JSONField(name = "desc")
    private String description;
    @JSONField(name = "time_type")
    private Byte timeType;
    @JSONField(name = "state")
    private Byte state;
    @JSONField(name = "start_time")
    private Date startTime;
    @JSONField(name = "end_time")
    private Date endTime;
    @JSONField(serialize = false)
    private Date createTime;
    @JSONField(serialize = false)
    private Date updateTime;
    private String adventId;
    @JSONField(name = "required_sex")
    private Byte requiredSex;


    public Byte getRequiredSex() {
        return requiredSex;
    }

    public void setRequiredSex(Byte requiredSex) {
        this.requiredSex = requiredSex;
    }

    public String getAdventId() {
        return adventId;
    }

    public void setAdventId(String adventId) {
        this.adventId = adventId;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Byte getAdventType() {
        return adventType;
    }

    public void setAdventType(Byte adventType) {
        this.adventType = adventType;
    }


    public Byte getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Byte pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName == null ? null : iconName.trim();
    }

    public String getGotoUrl() {
        return gotoUrl;
    }

    public void setGotoUrl(String gotoUrl) {
        this.gotoUrl = gotoUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Byte getTimeType() {
        return timeType;
    }

    public void setTimeType(Byte timeType) {
        this.timeType = timeType;
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        return "AdventCfgDTO{" +
                "id='" + id + '\'' +
                ", adventType=" + adventType +
                ", pageIndex=" + pageIndex +
                ", iconName='" + iconName + '\'' +
                ", gotoUrl='" + gotoUrl + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", timeType=" + timeType +
                ", state=" + state +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", adventId='" + adventId + '\'' +
                '}';
    }
}